package com.study.mike.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.study.mike.model.dto.FishEqDTO;
import com.study.mike.model.dto.PageDTO;
import com.study.mike.model.entity.FishEquipmentDO;
import com.study.mike.model.po.FishEqPO;
import com.study.mike.model.po.FishEquipmentPO;

import java.util.List;

/**
 * @author KangHui
 * @Date 2023/6/20 17:04
 */
public interface FishEquipmentService extends IService<FishEquipmentDO> {


    /**
     * 新增数据
     *
     * @param po
     * @return
     */
    Boolean addFishEq(FishEquipmentPO po);

    /**
     * 设置状态
     *
     * @param id
     * @param status
     * @return
     */
    Boolean setStatus(Long id, Integer status);

    /**
     * 分页获取
     *
     * @param po
     * @return
     */
    PageDTO<FishEqDTO> queryFishEq(FishEqPO po);

    /**
     * 删除
     *
     * @param pos
     * @return
     */
    Boolean deleteFishEq(List<FishEquipmentPO> pos);


    /**
     * 编辑
     *
     * @param po
     * @return
     */
    Boolean updateFishEq(FishEquipmentPO po);
}
